package design._01_factory.general2;
//日志记录器工厂接口：抽象工厂
public interface LoggerFactory {
	public Logger createLogger();
	public Logger createLogger(String args);
	public Logger createLogger(Object obj);
	
	//在工厂类中直接调用日志记录器类的业务方法writeLog()
	public default void writeLog() {
		Logger logger = this.createLogger();
		logger.writeLog();
	}
}
